function [vector matrix] = im2hist(image)

image_after_transform = imhist(image, 24);
matrix = image_after_transform;
vector = image_after_transform(:);